package com.wind.taobao.api.trade.user.rest
{
	import com.wind.taobao.api.trade.user.convert.UserConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.users.get Response
	 * @author fxy
	 *
	 */
	public class UsersGetResponse extends TaobaoResponse
	{
		public var users:ArrayCollection;

		public function UsersGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initUsers();
		}

		private function initUsers():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("users"))
					users=UserConvert.convertUsers(body["rsp"]["users"]);
			}
		}

	}
}